package com.magnificent.atlantis.common.entity.messages;

import java.util.ArrayList;

/**
 * User: Babanin
 * Date: 04.05.2009
 * Time: 22:47:02
 */
public class ServerUpdateMeetingMessage extends ServerMeetingMessage {
    private boolean reInvite;
    private ArrayList<Integer> invitedUsers;

    public ServerUpdateMeetingMessage() {
    }

    public boolean isReInvite() {
        return reInvite;
    }

    public void setReInvite(boolean reInvite) {
        this.reInvite = reInvite;
    }

    public ArrayList<Integer> getInvitedUsers() {
        return invitedUsers;
    }

    public void setInvitedUsers(ArrayList<Integer> invitedUsers) {
        this.invitedUsers = invitedUsers;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        ServerUpdateMeetingMessage that = (ServerUpdateMeetingMessage) o;

        if (invitedUsers != null ? !invitedUsers.equals(that.invitedUsers) : that.invitedUsers != null) return false;

        return true;
    }

    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (invitedUsers != null ? invitedUsers.hashCode() : 0);
        return result;
    }
}
